From f7e48e3529975acdfdf8cc8468611e410ca998a7 Mon Sep 17 00:00:00 2001 From: Andrei Ismail Date: Tue, 20 Aug 2013 13:02:50 +0300 Subject: [PATCH] Added more constants related to page breaks and to widget initialization. --- core/constants.coffee | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/core/constants.coffee b/core/constants.coffee index 215e00b..d15735e 100644 --- a/core/constants.coffee +++ b/core/constants.coffee @@ -3,9 +3,6 @@ define [], () -> # To add project specific constants create a new constants file and extend window.Constants Constants = - # Custom error message thrown when a 401 Unauthorized message is received from the server. - UNAUTHORIZED_EXCEPTION: '__UNAUTHORIZED__' - TODO_MOCKS: [ id: 1 name: "rob the bank", @@ -32,5 +29,15 @@ define [], () -> checked: true ] + # Custom error message thrown when a 401 Unauthorized message is received from the server. + UNAUTHORIZED_EXCEPTION: '__UNAUTHORIZED__' + + # Data attribute name used to tell WidgetStarter to delay the start of marked widget. + DELAY_WIDGET: 'data-delayed' + INITIALIZED_WIDGET: 'data-initialized' + + # Class name used for widgets between which page rendering can be broken. + PAGE_BREAK_CLASS: 'mozaic-page-break' + window.Constants = Constants return Constants