Navigation

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

    Best posts made by PA

    • RE: [SOLVED] Override Onsen UI v1 pushPage function

      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));
          };
      }]);
      
      posted in Onsen UI
      PA
    • Onsen.io main domain name

      Hello,

      I noticed that Google points me to http://onsen.io.s3-website-us-east-1.amazonaws.com/ instead of https://onsen.io/

      I believe it’s just a misconfiguration.

      I haven’t found where to throw this so I came here…

      posted in Onsen UI
      PA