Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. PA
    3. Topics
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by PA

    • [SOLVED] Override Onsen UI v1 pushPage function
      Onsen UI • • PA

      2
      0
      Votes
      2
      Posts
      2746
      Views

      I solved my problem this way: // Onsen UI v1 dit not get this bugfix to prevent loading the page twice if user taps twice // so we backport it from https://github.com/OnsenUI/OnsenUI/pull/1176/commits/b06a6bacca672462e661100ac0e1eda18121aa16 angular.module('onsen').run(['NavigatorView', function(NavigatorView) { NavigatorView.prototype.pushPage = function(page, options) { if (this._profiling) { console.time('pushPage'); } options = options || {}; if (options.cancelIfRunning && this._isPushing) { return; } if (options && typeof options != 'object') { throw new Error('options must be an object. You supplied ' + options); } if (this._emitPrePushEvent()) { return; } // the backport is just this line... this._isPushing = true; this._doorLock.waitUnlock(function() { this._pushPage(page, options); }.bind(this)); }; }]);
    • Onsen.io main domain name
      Onsen UI • • PA

      2
      1
      Votes
      2
      Posts
      2429
      Views

      @PA Thanks! We are updating the webpage and that will be fixed during the day :)
    • Solved Delayed page loading
      Developer Corner • ons-navigator angular api loader user experience • • PA

      6
      0
      Votes
      6
      Posts
      6438
      Views

      @Fran-Diox ok I see what you meant. Thank you. Now, this means I will have to re-architect some things!