mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Working with locals
This commit is contained in:
parent
31fbdb61e7
commit
0f6d591084
4 changed files with 17 additions and 4 deletions
|
@ -6,7 +6,6 @@ window.filtersExecuted = window.filtersExecuted || {before : [], after : []};
|
|||
var filter = new Paloma.FilterScope('bar');
|
||||
var _x = Paloma.variableContainer;
|
||||
|
||||
|
||||
filter.skip_before_filter('Standard Skip Before Filter');
|
||||
filter.skip_before_filter('Only Skip Before Filter').only('basic_action');
|
||||
filter.skip_before_filter('Except Skip Before Filter').except('yet_another_basic_action');
|
||||
|
|
|
@ -1 +1,12 @@
|
|||
Paloma.callbacks['foo'] = {}
|
||||
(function(){
|
||||
Paloma.callbacks['foo'] = {};
|
||||
|
||||
Paloma.helpers['foo'] = {
|
||||
helperMethod : function(){
|
||||
return 100;
|
||||
},
|
||||
|
||||
helperVariable : 99
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
(function(){
|
||||
var _x = Paloma.variableContainer;
|
||||
|
||||
var _x = Paloma.variableContainer,
|
||||
_H = Paloma.helpers,
|
||||
_h = _H['foo'];
|
||||
|
||||
|
||||
Paloma.callbacks['foo']['basic_action'] = function(params)
|
||||
{
|
||||
|
|
1
vendor/assets/javascripts/paloma_core.js
vendored
1
vendor/assets/javascripts/paloma_core.js
vendored
|
@ -2,6 +2,7 @@
|
|||
window.Paloma = {
|
||||
callbacks : {},
|
||||
filterScopes : {},
|
||||
helpers : {},
|
||||
variableContainer : {}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue