Navigation

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

    laelbe

    @laelbe

    0
    Reputation
    3
    Posts
    1003
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    laelbe Follow

    Posts made by laelbe

    • Is it safe to use this function?

      Hello.

      My App is using this javascript functions.

      
      window.fn.pushPage = function (page, anim, clearcache = false) {
      	document.getElementById('sidemenu').close();
      	if (clearcache) {
      		ons._internal.templateStore.set(page.id, null);
      	}
      	if (anim) {
      		document.getElementById('appNavigator').pushPage(page.id, { data: { title: page.title }, animation: anim });
      	} else {
      		document.getElementById('appNavigator').pushPage(page.id, { data: { title: page.title } });
      	}
      };
      
      
      window.fn.resetPageCache = function () {
      	ons._internal.templateStore._storage = {};
      }
      
      

      Is it safe to use? Please advise me if there is another suitable method.
      Thanks!

      posted in Onsen UI
      L
      laelbe
    • RE: ons-modal

      @Fran-Diox 0_1516870147044_sc1.png
      I think others may need this option.
      It just my opinion.

      posted in JavaScript Core
      L
      laelbe
    • RE: ons-modal

      I think this component should support “cancelable” attribute/property.

      posted in JavaScript Core
      L
      laelbe